package com.wx.mall.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author j
 * @since 2020-03-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("usr_user")
@ApiModel(value="User对象", description="用户表")
public class User implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "用户Id")
      @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    @ApiModelProperty(value = "用户账号，唯一")
    private Long userNumber;

    @ApiModelProperty(value = "用户昵称，可以重名")
    private String userName;

    @ApiModelProperty(value = "用户密码")
    private String userPassword;

    @ApiModelProperty(value = "会员等级Id")
    private Integer userMsId;

    @ApiModelProperty(value = "用户消费金额")
    private Integer userConsume;

    @ApiModelProperty(value = "用户的有效订单数量")
    private Integer userOderNumber;

    @ApiModelProperty(value = "用户成长值总值")
    private Integer userGrowth;

    @ApiModelProperty(value = "是否启用该账户：0起1关")
    private Integer userIsActive;

    @ApiModelProperty(value = "用户手机号")
    private Long userPhone;

    @ApiModelProperty(value = "性别：0保密、1男、2女")
    private Integer userIsSex;

    @ApiModelProperty(value = "用户生日")
    private Date userBirthday;

    @ApiModelProperty(value = "用户住址")
    private String userAddress;

    @ApiModelProperty(value = "用户职业")
    private String userJob;

    @ApiModelProperty(value = "个性签名")
    private String userSignature;

    @ApiModelProperty(value = "用户喜欢的商品分类:通过分类表id查找")
    private Integer userLikeCategoryId;

    @ApiModelProperty(value = "用户的登录方式:用户来源")
    private String userSource;

    @ApiModelProperty(value = "用户注册时间")
    private Date userCreateTime;


}
